.SUFFIXES:.cpp .o

CC=g++

#SRCS=Interface.cpp
#OBJS=$(SRCS:.cpp=.o)

SRCS  := $(wildcard *.cpp) # xun zhao suo you de cpp wen jian
SRCS  += $(wildcard ./code/*.cpp)
OBJS    := $(patsubst %.cpp,%.o,$(SRCS)) # ba suo you .cpp wen jian ti huan wei .o  ru: Interface.cpp ---> Interface.o



EXEC=libmyso.so


%*.o: %*.cpp
	$(CC) $(CFLAG) $(INC) -o $@ -c $<
	@echo "----------------------------%*.o:%*.cpp----------------------"

all: $(OBJS)
	$(CC) -shared -fPIC -o $(EXEC) $(OBJS)
	@echo "-----------------------------OK-----------------------"




clean:
	rm -rf $(EXEC) $(OBJS)
